﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;

namespace MLY.LTR
{
  public partial class dataTransfer : Bll.BasePage
  {
    protected void Page_Load(object sender, EventArgs e)
    {
        /// DEMO CODE
        //if (!IsPostBack && (Session["UserId"].ToString() == "39"))
        //{
        //    if ((string)Session["DemoStage"] == "DataTransfer")
        //    {
        //        uploadBtn.CssClass = "linkBtn demohighlight";
        //        MLY.Bll.Demo.MoveToNextDemoSubStage();
        //    }
        //}
        if ((Request.QueryString["isclient"] != null) || SessParam.IsClient)
        {
            uploadButton.PostBackUrl = "addWoFile.aspx?isclient=true";
            DownloadButton.PostBackUrl = "WoDownload.aspx?isclient=true";
        }
        else
        {
            uploadButton.PostBackUrl = "addWoFile.aspx";
            DownloadButton.PostBackUrl = "WoDownload.aspx";
        }
    }

    //protected void uploadBtn_Click(object sender, EventArgs e)
    //{
    //  //if (Request.QueryString["isclient"] != null)
    //  if (SessParam.IsClient)
    //    Response.RedirectTo("addWoFile.aspx?isclient=true");
    //  else
    //    Response.RedirectTo("addWoFile.aspx");
    //}

    //protected void LinkButton1_Click(object sender, EventArgs e)
    //{
    //    if (SessParam.IsClient)
    //    Response.RedirectTo("WoDownload.aspx?isclient=true");
    //  else
    //    Response.RedirectTo("WoDownload.aspx");
    //}
  }
}
